﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OOP
{
    class Person
    {
        private string _firstName;

        public string GetFirstName()
        {
            return this._firstName;
        }

        public void SetFirstName(string firstName)
        {
            this._firstName = firstName;
        }

        public string FirstName
        {
            get
            {
                return "<" + this._firstName + ">";
            }
            set
            {
                this._firstName = value;
            }
        }

        public string LastName { get; set; }

        public int BornYear;

        public int GetAge()
        {
            return 2015 - this.BornYear;
        }

        public void SetAge(int age)
        {
            BornYear = 2015 - age;
        }
    }
}
